package com.liukai.bishe.ui.broadcastReceiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;

import com.liukai.bishe.ui.activity.CountDownActivity;

public class TransactionBroadcastReceiver extends BroadcastReceiver {

    ITransactionUpdateUI mITransactionUpdateUI;

    @Override
    public void onReceive(Context context, Intent intent) {

        Bundle bundle=intent.getExtras();
        int time=bundle.getInt("time");
        mITransactionUpdateUI.updateUI(time+"");

    }

    public void registerITransactionUpdateUI(ITransactionUpdateUI iTransactionUpdateUI) {
        this.mITransactionUpdateUI = iTransactionUpdateUI;
    }

    public interface ITransactionUpdateUI{
        void updateUI(String string);
    }


}
